package com.taobao.api.request;

import com.taobao.api.internal.util.RequestCheckUtils;
import java.util.Map;

import com.taobao.api.ApiRuleException;
import com.taobao.api.BaseTaobaoRequest;
import com.taobao.api.internal.util.TaobaoHashMap;

import com.taobao.api.response.TmallNrZqsPlanQueryResponse;

/**
 * TOP API: tmall.nr.zqs.plan.query request
 * 
 * @author top auto create
 * @since 1.0, 2018.11.06
 */
public class TmallNrZqsPlanQueryRequest extends BaseTaobaoRequest<TmallNrZqsPlanQueryResponse> {
	
	

	/** 
	* 交易子订单id
	 */
	private Long detailOrderId;

	public void setDetailOrderId(Long detailOrderId) {
		this.detailOrderId = detailOrderId;
	}

	public Long getDetailOrderId() {
		return this.detailOrderId;
	}

	public String getApiMethodName() {
		return "tmall.nr.zqs.plan.query";
	}

	public Map<String, String> getTextParams() {		
		TaobaoHashMap txtParams = new TaobaoHashMap();
		txtParams.put("detail_order_id", this.detailOrderId);
		if(this.udfParams != null) {
			txtParams.putAll(this.udfParams);
		}
		return txtParams;
	}

	public Class<TmallNrZqsPlanQueryResponse> getResponseClass() {
		return TmallNrZqsPlanQueryResponse.class;
	}

	public void check() throws ApiRuleException {
		RequestCheckUtils.checkNotEmpty(detailOrderId, "detailOrderId");
	}
	

}